// 导入VueRouter模块
import VueRouter from 'vue-router'

// 导入组件
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopCarContainer from './components/tabbar/ShopCarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import Newslist from './components/News/newslist.vue'

//创建路由对象
var router = new VueRouter({
    //匹配规则
    routes:[
      { path:'/',redirect: "/home" },
      { path: '/home', component: HomeContainer},
      { path: '/member', component: MemberContainer},
      { path: '/shopcar', component: ShopCarContainer},
      { path: '/search', component: SearchContainer },
      { path: '/home/newslist', component: Newslist },
      
     
    ],
    linkActiveClass:"mui-active"
  
  
  })


  export default router